From: Carlos Garnacho Date: Fri, 25 Feb 2022 12:10:53 +0000 (+0100) Subject: searchController: Avoid event.set_source() API X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~516^2^2~26 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6d895bf8a9faff0b176f024de3df6b018d34fae7;p=gnome-shell.git searchController: Avoid event.set_source() API It does not make sense that the target actor is both destinatary and content of the events being sent, so this API call is going away. Since the event can be sent entirely unmodified (more so, it will become immutable/readonly in the future), avoid creating a copy since it does not matter sending one or other struct. Part-of: --- diff --git a/js/ui/searchController.js b/js/ui/searchController.js index ac22439a4..ba743a909 100644 --- a/js/ui/searchController.js +++ b/js/ui/searchController.js @@ -228,10 +228,7 @@ var SearchController = GObject.registerClass({ startSearch(event) { global.stage.set_key_focus(this._text); - - let synthEvent = event.copy(); - synthEvent.set_source(this._text); - this._text.event(synthEvent, false); + this._text.event(event, false); } // the entry does not show the hint